from django.db import models

# Create your models here.
from django.db import models
# Register your models here.
class Company(models.Model):
    name = models.CharField(max_length=200,blank=False)
    detail = models.CharField(max_length=200)
    logo = models.ImageField(upload_to='logos/')
    # user = models.OneToOneField(User,on_delete=models.CASCADE)
    def __str__(self) -> str:
        return "公司模型：{}".format(self.name)
    
class School(models.Model):
    name = models.CharField(max_length=200,blank=False)
    detail = models.CharField(max_length=200)
    logo = models.ImageField(upload_to='logos/')
    # user = models.OneToOneField(User,on_delete=models.CASCADE)
    def __str__(self) -> str:
        return "学校模型：{}".format(self.name)